<template>
	<view class="myContent">
		<view class="header">
			<image width="100%" height="100%" class="headbgImage" src="/static/background_phone.jpg"></image>
			<image width="100%" height="100%" round class="myPhoto" src="/static/background.jpg"></image>
			<image width="100%" height="100%" round class="myPhoto1" src="/static/setting.png" @click="setting"></image>
			<text class="myInformation">张三</text>
		</view>
		<view class="middle-num">
			<view class="oner">
				<view class="zi">
					<text class="zier">{{coupon}}<text class="zisan"></text></text>
					<text class="quan">购物车</text>
				</view>
			</view>
<!-- 			<view class="twoer">|</view> -->
			<view class="three">
				<view class="zi">
					<text class="zier">{{integral}}\n</text>
					<text class="quan">红包</text>
				</view>
			</view>
			<view class="three">
				<view class="zi">
					<text class="zier">{{integral}}\n</text>
					<text class="quan">账单</text>
				</view>
			</view>
		</view>
		<view class="mydingdan">
			<view style="display: flex;" >
			<div style="margin-left: 10px; margin-top: 12px;">订单管理</div>
			<view style="margin-left: 250px; margin-top: 12px; font-size: 20px;"  @click="my_order">  > </view>
			</view>
        <view class="myorder-container" @click="my_order">
			<view class="myorder">
			<view >11</view>
			<view style="margin-top: 15px;">全部</view>
            </view>
			<view class="myorder">
			<view >11</view>
			<view style="margin-top: 15px;">已预定</view>
			</view>
			<view class="myorder">
			<view >11</view>
			<view style="margin-top: 15px;">已完成</view>
			</view>
			<view class="myorder">
			<view >11</view>
			<view style="margin-top: 15px;">退款订单</view>
			</view>
		</view>	
		</view>
		
		
		<view class="liebiao">
			<view>推荐工具</view>
			<view class="tools-container">
			    <view class="tool" v-for="(item, index) in menus" :key="index"  @click="navigateTo(item.link)">
			      <image :src="item.url" class="tool-image"></image>
			      <view class="tool-url">{{ item.name }}</view>
			    </view>
			  </view>
		</view>
	</view>
</template>
 
<script>

	export default {
		data() {
			return {
				coupon: 6,
				integral: 10,
				icon: [],
				lbIcon:[],
				menus:[
					{name:'客服中心',url:'../../static/service.png',link: '/pages/tool/service'},
					{name:'名宿管理',url:'../../static/house.png',link: '/pages/tool/mylove'},
					{name:'平台管理',url:'../../static/manager.png',link: '/pages/tool/shop_inner'},
					{name:'上传资质',url:'../../static/upload.png',link: '/pages/tool/cheap_tricket'},
					8
				
				]
			}
		},
		onLoad() {
         console.log("55555");
 
		},
		methods: {
			my_order() {
				this.$router.push('/pages/order/order')
			},
			setting(){
				this.$router.push('/pages/setting/setting')
			},
			navigateTo(link) {
			    this.$router.push(link);
			  }
			
		   
			},
		}
	
</script>
 
<style>
	page {
		background: #eaeaea;
	}
 
	.myContent {
		width: 100%;
		height: 100%;
		margin: 0 auto;
	}
 
	.header {
		flex-direction: row;
		display: flex;
		height: 200rpx;
	}
 
	.headbgImage {
		height: 25%;
		width: 100%;
		position: absolute;
		z-index: 1;
	}
 
	.myPhoto {
		height: 120rpx;
		width: 110rpx;
		position: absolute;
		z-index: 2;
		margin-left: 3%;
		margin-top: 3%;
	}
	
	.myPhoto1 {
		height: 50rpx;
		width: 50rpx;
		z-index: 2;

		margin-left: 85%;
		margin-top: 20px;

	}
 
	.myInformation {
		position: absolute;
		z-index: 2;
		margin-left: 20%;
		margin-top: 9%;
	}
 
	.middle-num {
		position: absolute;
		z-index: 2;
		display: flex;
		flex-wrap: nowrap;
		background: white;
		width: 95%;
		margin-left: 20rpx;
		height: 160rpx;
		border-radius: 10px;
		margin-top: -50rpx;
	}
 
	.oner {
		flex-grow: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}
 
	.twoer {
		flex-grow: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		color: #eaeaea;
	}
 
	.three {
		flex-grow: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}
 
	.zier {
		font-size: 48rpx;
		color: #333333;
	}
 
	.zisan {
		font-size: 24rpx;
		color: #333333;
	}
 
	.quan {
		font-size: 24rpx;
		color: #999999;
	}
 
	.zi {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
 
	.mydingdan {
		display: flex;
		flex-wrap: nowrap;
		background: #fff;
		width: 95%;
		height: 250rpx;
		margin-left: 20rpx;
		border-radius: 10px;
		margin-top: 130rpx;
		flex-direction: column;
	}
 

 

	.liebiao {
		height: 658rpx;
		align-items: center;
		flex-wrap: nowrap;
		background: #fff;
		width: 91%;
		border-radius: 10px;
		flex-direction: column;
		padding: 2%;
		margin: 20rpx 20rpx 10rpx 20rpx;
	}
	.myorder-container {
	    display: flex;
	    justify-content: space-around; /* 或者 space-between, center 等 */
	}
    .myorder
	{
		height: 80px; 
		  
		 /* 边框仅用于展示容器范围 */
/* 		 border: 1px solid #ddd; */
		width: 80px;
		margin: 10px;
  
	}


    .tool {
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        margin: 10px; 
		width: 80px;
		height: 80px;
}
    .tools-container {
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between; 
	}
	.tool-image {
	  width: 30px;
	  height: 30px; 
	
	}
		

    
</style>